import {store} from "@/store";

export const useLectureStore = defineStore('lecture', () => {
    const lectureForm = ref({
        rp_id: 0,
        type: 0,
        task_id: 0
    });
    const lectureState = ref(0)

    return {
        lectureForm,
        lectureState,
    };
}, {
    persist: {
        enabled: true, // 启用持久化
        // 不设置 paths，默认持久化所有状态
    }
});

export function useLecturetStore() {
    return useLectureStore(store);
}
